package 创建型模式.单例;

/**
 * @ClassNameHungrySingleton
 * @Description
 * @Author
 * @Date2021/11/17 20:45
 **/

/**
 * 饿汉式
 * @author zwzh_zj
 */
public class HungrySingleton {
    private static HungrySingleton instance = new HungrySingleton();
    private HungrySingleton() {
    }
    public static HungrySingleton getInstance() {
        return instance;
    }
}
